import request from '@/utils/request'

// 查询电表记录列表
export function listMeterRecord(query) {
  return request({
    url: '/business/meterRecord/list',
    method: 'get',
    params: query
  })
}

// 查询电表记录详细
export function getMeterRecord(id) {
  return request({
    url: '/business/meterRecord/' + id,
    method: 'get'
  })
}

// 新增电表记录
export function addMeterRecord(data) {
  return request({
    url: '/business/meterRecord',
    method: 'post',
    data: data
  })
}

// 修改电表记录
export function updateMeterRecord(data) {
  return request({
    url: '/business/meterRecord',
    method: 'put',
    data: data
  })
}

// 删除电表记录
export function delMeterRecord(id) {
  return request({
    url: '/business/meterRecord/' + id,
    method: 'delete'
  })
}
